package com.grape.dp.face.controller;

import com.grape.dp.face.service.PayCallbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 描述:PayCallbackController
 * @author: myx
 * @date: 2019/7/29 0029
 * Copyright © 2019-grape. All rights reserved.
 */
@RestController
public class PayCallbackController {
    @Autowired
    private PayCallbackService payCallbackService;

    @RequestMapping("/payCallback")
    public String payCallback(Map<String, String> verifySignature) {
        payCallbackService.callback(verifySignature);
        return "success";
    }
}
